package TestDemo;



interface Alram {
    public void alarm();
}

abstract class Door {
    void open(){};
    void close(){};
}

public class InterfaceAndAbstractDemo extends Door implements Alram {
    public static void main(String[] agrs){
        InterfaceAndAbstractDemo d = new InterfaceAndAbstractDemo();
        d.alarm();
    }

    @Override
    public void alarm() {
        System.out.println("实现接口方法了");
    }

    void oepn() {
        //....
    }
    void close() {
        //....
    }
}
